﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Blog.BLL;
using Blog.Model;

namespace App.Blog.Controllers
{
    public class ArticleController : Controller
    {
        //
        // GET: /Article/
        public ActionResult Index()
        {

            ViewData["articleList"] =GetArticle();
            return View();
        }
        public List<Article> GetArticle()
        {
            ArticleService article = new ArticleService();
            return article.Show();
        }
	}
}